<div class="container">

    <form th:action="@{/comments}" method="post" th:object="${commentModel.comment}"
          id="commentForm">
        <input type="hidden" name="id" th:value="*{id}">


        <div class="form-group">
            <label for="author" class="col-form-label">作者</label> <input
                type="email" class="form-control" id="author" name="author"
                th:value="*{author}" maxlength="50" placeholder="请输入作者">
        </div>
        <div class="form-group">
            <label for="content" class="col-form-label">内容</label> <input
                type="text" class="form-control" id="content" name="content"
                th:value="*{content}"  placeholder="请输入内容">
        </div>


    </form>

</div><!-- /.container -->